projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41d5a50
)
(main): In batch mode, don't set the pgrp.
author
Richard M. Stallman
<rms@gnu.org>
Sat, 28 May 1994 04:46:38 +0000
(
04:46
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 28 May 1994 04:46:38 +0000
(
04:46
+0000)
src/emacs.c
patch
|
blob
|
history
diff --git
a/src/emacs.c
b/src/emacs.c
index 784cf183a6654300f3d5535494ec692f67e8d997..abd6e9d1dd174b8739585b10a9dc687c8dbb1683 100644
(file)
--- a/
src/emacs.c
+++ b/
src/emacs.c
@@
-409,18
+409,20
@@
main (argc, argv, envp)
clearerr (stdin);
-#ifdef BSD_PGRPS
- if (initialized)
+ if (! noninteractive1)
{
- inherited_pgroup = EMACS_GETPGRP (0);
- setpgrp (0, getpid ());
- }
+#ifdef BSD_PGRPS
+ if (initialized)
+ {
+ inherited_pgroup = EMACS_GETPGRP (0);
+ setpgrp (0, getpid ());
+ }
#else
#if defined (USG5) && defined (INTERRUPT_INPUT)
- setpgrp ();
+
setpgrp ();
#endif
#endif
-
+ }
#ifdef APOLLO
#ifndef APOLLO_SR10